// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期：2024-11-15 16:59:17
// 生成路径: api/v1/system/withdraw_records.go
// 生成人：周
// desc:余额提现记录相关参数
// company:云南奇讯科技有限公司
// ==========================================================================

package system

import (
	"github.com/gogf/gf/v2/frame/g"
	commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
	"github.com/tiger1103/gfast/v3/internal/app/system/model"
)

// WithdrawRecordsSearchReq 分页请求参数
type WithdrawRecordsSearchReq struct {
	g.Meta `path:"/list" tags:"余额提现记录" method:"get" summary:"余额提现记录列表"`
	commonApi.Author
	model.WithdrawRecordsSearchReq
}

// WithdrawRecordsSearchRes 列表返回结果
type WithdrawRecordsSearchRes struct {
	g.Meta `mime:"application/json"`
	*model.WithdrawRecordsSearchRes
}

// WithdrawRecordsAddReq 添加操作请求参数
type WithdrawRecordsAddReq struct {
	g.Meta `path:"/add" tags:"余额提现记录" method:"post" summary:"余额提现记录添加"`
	commonApi.Author
	*model.WithdrawRecordsAddReq
}

// WithdrawRecordsAddRes 添加操作返回结果
type WithdrawRecordsAddRes struct {
	commonApi.EmptyRes
}

// WithdrawRecordsEditReq 修改操作请求参数
type WithdrawRecordsEditReq struct {
	g.Meta `path:"/edit" tags:"余额提现记录" method:"put" summary:"余额提现记录修改"`
	commonApi.Author
	*model.WithdrawRecordsEditReq
}

// WithdrawRecordsEditRes 修改操作返回结果
type WithdrawRecordsEditRes struct {
	commonApi.EmptyRes
}

// WithdrawRecordsGetReq 获取一条数据请求
type WithdrawRecordsGetReq struct {
	g.Meta `path:"/get" tags:"余额提现记录" method:"get" summary:"获取余额提现记录信息"`
	commonApi.Author
	Id int `p:"id" v:"required#主键必须"` //通过主键获取
}

// WithdrawRecordsGetRes 获取一条数据结果
type WithdrawRecordsGetRes struct {
	g.Meta `mime:"application/json"`
	*model.WithdrawRecordsInfoRes
}

// WithdrawRecordsDeleteReq 删除数据请求
type WithdrawRecordsDeleteReq struct {
	g.Meta `path:"/delete" tags:"余额提现记录" method:"delete" summary:"删除余额提现记录"`
	commonApi.Author
	Ids []int `p:"ids" v:"required#主键必须"` //通过主键删除
}

// WithdrawRecordsDeleteRes 删除数据返回
type WithdrawRecordsDeleteRes struct {
	commonApi.EmptyRes
}

// 余额提现记录提现状态：1-待审核  2-已到账 3-审核失败  修改（状态）
type WithdrawRecordsStatusSwitchReq struct {
	g.Meta `path:"/changeStatus" tags:"余额提现记录" method:"put" summary:"修改提现状态：1-待审核  2-已到账 3-审核失败  "`
	commonApi.Author
	Id     int `p:"id" v:"required#主键必须"`     //通过主键修改
	Status int `p:"status" v:"required#状态必须"` //通过主键获取
}
type WithdrawRecordsStatusSwitchRes struct {
	commonApi.EmptyRes
}
